import req from "./req.js";

export function loginByAccount( ldata ){
    return new Promise(function( resolve , reject ){
        
        req.request({
            baseurl: process.env.VUE_APP_HOST,
            url: "/user/login",
            method:"post",
            data: ldata,
            header:{"Content-Type":"application/json;charset=utf-8"}
        }).then( res=>{
            resolve( res );
        } ).catch( err =>{
            reject( err );
        });
    });
}

